home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / northc / northc1.lzh / include / stdlib.h < prev    next >
C/C++ Source or Header  |  1990-08-30  |  685b  |  41 lines

  1. #ifndef STDLIB_H
  2. #define    STDLIB_H
  3.  
  4. #define EXIT_FAILURE    (20)
  5. #define EXIT_SUCCESS    (0)
  6.  
  7. #define MB_CUR_MAX    (1)
  8.  
  9. #ifndef NULL
  10. #define NULL        (0L)
  11. #endif
  12.  
  13. #define    RAND_MAX    (0x7FFF)    /* maximum value from rand() */
  14.  
  15. extern void abort();
  16. #define atof(str)    strtod(str,NULL)
  17. #define atol(str)    strtol(str,NULL,10)
  18. #define atoi(str)    ((int)strtol(str,NULL,10))
  19. extern char *bsearch();
  20. extern char *calloc();
  21.  
  22. typedef struct
  23.    {int quot;
  24.     int rem;
  25.     } div_t;
  26.  
  27. typedef struct
  28.    {long quot;
  29.     long rem;
  30.     } ldiv_t;
  31.  
  32. extern div_t div();
  33. extern char *getenv();
  34. extern long labs();
  35. extern char *malloc();
  36. extern char *realloc();
  37. extern double strtod();
  38. extern long strtol();
  39.  
  40. #endif
  41.